<#compress>
    <@override name="title">餐桌类型</@override>
    <@override name="viewcss">
    <link href="${ctx}/static/scripts/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/scripts/plugins/bootstrap-modal/css/bootstrap-modal.css" rel="stylesheet" type="text/css"/>
    </@override>
    <@override name="viewbody">
    <div class="row">
        <div class="col-md-12">
            <h3 class="page-title">
                开放预定时间管理
                <small>开放预定时间维护.</small>
            </h3>
            <ul class="page-breadcrumb breadcrumb">
                <li>
                    <i class="fa fa-home"></i>
                    <a href="${ctx}/admin/home">
                        首页
                    </a>
                    <i class="fa fa-angle-right"></i>
                </li>
                <li>
                    <a href="${ctx}/admin/booking/dining">
                        餐饮品牌
                    </a>
                    <i class="fa fa-angle-right"></i>
                </li>
                <li>
                    <a href="#">${brand.name!}品牌餐饮－开放预定时间管理 </a>
                </li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="portlet box grey">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="fa fa-reorder"></i>${brand.name!}的 开放预定时间管理
                    </div>
                </div>
                <div class="portlet-body">
                    <form action="${ctx}/admin/booking/dining/time_save" method="post" class="form-horizontal form-bordered">
                        <div class="form-body">
                            <input type="hidden" name="diningTime.brand" value="${time.brand!}">
                            <input type="hidden" name="diningTime.id" value="${time.id!}">

                            <div class="form-group">
                                <label class="control-label col-md-3" for="begin_time">开始时间</label>

                                <div class="col-md-4">
                                    <div class="input-group date form_datetime">
                                        <input type="text" size="16" readonly name="begin_time" id="begin_time" value="${time.start_time?string('yyyy-MM-dd HH:mm')}"
                                               class="form-control">
												<span class="input-group-btn">
													<button class="btn default date-set" type="button"><i class="fa fa-calendar"></i></button>
												</span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-md-3" for="end_time">结束时间</label>

                                <div class="col-md-4">
                                    <div class="input-group date form_datetime" data-date="">
                                        <input type="text" size="16" readonly id="end_time" name="end_time" value="${time.end_time?string('yyyy-MM-dd HH:mm')}"
                                               class="form-control">
                                          <span class="input-group-btn">
										    <button class="btn default date-set" type="button"><i class="fa fa-calendar"></i></button>
										  </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-actions fluid">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="col-md-offset-3 col-md-9">
                                        <button type="submit" class="btn purple"><i class="fa fa-check"></i> 保存</button>
                                        <a href="${ctx}/admin/booking/dining" class="btn default"> <i class="fa  fa-arrow-circle-o-left"></i>返回</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>

                </div>
            </div>
        </div>


    </div>
    </@override>

    <@override name="viewparams">
    g.brand = '${brand.id!}';
    </@override>
    <@override name="viewmodule">dining_category</@override>
    <@extends name="../../_basic/main.ftl"></@extends>
</#compress>